package com.hexb.smh.entity.shiro;

import com.hexb.smh.entity.enums.RoleType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author : hexb
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SmhUsernamePasswordToken extends UsernamePasswordToken {
    private RoleType role;

    public SmhUsernamePasswordToken() {
    }

    public SmhUsernamePasswordToken(String username, char[] password) {
        super(username, password);
    }

    public SmhUsernamePasswordToken(String username, String password) {
        super(username, password);
    }

    public SmhUsernamePasswordToken(String username, char[] password, String host) {
        super(username, password, host);
    }

    public SmhUsernamePasswordToken(String username, String password, String host) {
        super(username, password, host);
    }

    public SmhUsernamePasswordToken(String username, char[] password, boolean rememberMe) {
        super(username, password, rememberMe);
    }

    public SmhUsernamePasswordToken(String username, String password, boolean rememberMe) {
        super(username, password, rememberMe);
    }

    public SmhUsernamePasswordToken(String username, char[] password, boolean rememberMe, String host) {
        super(username, password, rememberMe, host);
    }

    public SmhUsernamePasswordToken(String username, String password, boolean rememberMe, String host) {
        super(username, password, rememberMe, host);
    }
}
